<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>修改投诉信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/theme/css/main.css">
	<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/theme/css/style_userCenter.css">
	<script type="text/javascript"
			src="${pageContext.request.contextPath}/theme/js/jquery-1.6.js"></script>
	<script type="text/javascript"
			src="${pageContext.request.contextPath}/theme/js/calendar/WdatePicker.js"></script>
	<script type="text/javascript"
			src="${pageContext.request.contextPath}/theme/js/jquery.validate.js"></script>
	<script type="text/javascript"
			src="${pageContext.request.contextPath}/theme/js/additional-methods.js"
			charset="utf-8"></script>
			
	<script type="text/javascript">
	$(document).ready(function() {
		$("#cargoForm").validate({
			errorPlacement: function(error, element) {
				     //element.parent("td").append(error);
				     element.attr("title", error.html());
				   },
			rules : {
				"complaintObj.complainted_id":{
					required: true
				}
			},
			messages : {
				"complaintObj.complainted_id":{
					required: "请输入被投诉者ID"
				}
			}
		})
	});
			
	</script>
  </head>
  
  <body>
   <div>
		<jsp:include page="../nav.jsp">
			<jsp:param value="nav_main" name="nav"/>
		</jsp:include>
	</div>
	<div class="realCer">
	
	<!--主体部分-->
	<div class="realMain clearfix mt10">
	 <!--左侧菜单-->
	<div class="realLeft" id="meunLeft">
	    <jsp:include page="../leftMenu.jsp">
	    	<jsp:param value="con_nav_main" name="con_nav"/>
	    	<jsp:param value="complaintManagement" name="selectMenu"/>
	    </jsp:include>
    </div>
    <!--中由-->
	<div class="realRight ml10">
			<div class="box">
			   <div class="tit">我的投诉</div>
			   <div class="con">  
			   		<form method="post" id="complaintForm" name="complaintForm" action="updateComplaint.action" namespace="/complaint">
						<table class="listTable">
							<tr>
							<td class="tdLabel" width="120">
								被投诉者：
							</td>
							<td class="tdValue">
								<input class="text" type="text" name="complaintObj.complainted_id" value="${complaintObj.complainted_id}"/>
							</td>
						</tr>
						
						<tr>
							<td class="tdLabel" width="120">
								投诉类型：
							</td>
							<td class="tdValue">
								<input class="text" type="text" name="complaintObj.type" value="${complaintObj.type}"/>
							</td>
						</tr>
						
						<tr>
							<td class="tdLabel" width="120">
								投诉目标：
							</td>
							<td class="tdValue">
								<s:propery value="${ complaintObj.target}" />
								<input class="text" type="text" name="complaintObj.target" value="${complaintObj.target}"/>
							</td>
						</tr>
						
						<tr>
							<td class="tdLabel" width="120">
								投诉原因：
							</td>
							<td class="tdValue">	
								<s:propery value="complaintObj.reason" />
								<textarea name="complaintObj.reason" cols="60" rows="3" value="${complaintObj.reason}"></textarea>
							</td>
						</tr>
						
						<tr>
							<td></td>
							<td class="tdValue">
								<input type="submit" value="提交">
							</td>
						</tr>
						</table>
					</form>
			</div>
		</div>
	</div>
	<!--中由-->
</div>
</div>
	<div>
		<jsp:include page="/footer.jsp"></jsp:include>
	</div>
  </body>
</html>
